<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // es6 引入新的声明字符串的方式
        // 1.声明
        let  str = `我是字符串`
        console.log(str, typeof(str))

        // 2.内容中可以直接出现换行符
        // let str2 = '<ul>
        //     <li>1111</li>
        //     <li>2222</li>
        //     <li>3333</li>
        //     </ul>' //得用+链接不然报错

        let str2 = `<ul>
                        <li>1111</li>
                        <li>2222</li>
                        <li>3333</li>
                    </ul>`

        // 3. 变量拼接
        let lovest = '阿乐'
        let out = `${lovest}是我心中搞笑的演员`
        console.log(out)
    </script>
</body>
</html>